/*
 * Copyright (c) 2023, 2024,yzc.cn All rights reserved.
 *
 */
package com.by.controller;

import com.by.common.bean.Result;
import com.by.pojo.FinPayment;
import com.by.server.FinPaymentServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>Project: erp-cloud-api - FinPaymentController</p>
 * <p>Powered by yzc On 2024-01-19 17:01:37</p>
 * <p>描述：<p>
 *
 * @author yzc [yzc0415@126.com]
 * @version 1.0
 * @since 17
 */
@RestController
public class FinPaymentController {

    @Autowired
    FinPaymentServer finPaymentServer;

    @PostMapping("/fin/save")
    public Result save(@RequestBody FinPayment finPayment){
        int rs = finPaymentServer.save(finPayment);
        if (rs > 0)
            return Result.success("保存成功");
        return Result.error("保存失败");
    }
}
